package com.flower.domain.entity.category;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 * 商品分类表(Category)表实体类
 *
 * @author lixinghe
 * @since 2022-10-15 11:41:53
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("shop_category")
public class Category {
    //分类编号
    @TableId
    private Long id;
    //父分类的id
    private Long pid;
    //分类名称
    private String cateName;
    //排序
    private Integer sort;
    //创建时间
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date createTime;
    //修改时间
    @TableField(fill = FieldFill.UPDATE)
    private Date updateTime;
    //删除状态
    @TableField(fill = FieldFill.INSERT)
    private Integer isDel;
    //是否为父级分类
    private Integer isFa;

    //表示此字段不属于表中的数据字段
    @TableField(exist = false)
    private List<Category> categoryList;
}

